package com.fgba.express.security;

import com.fgba.express.comm.result.IResultCode;
import lombok.Getter;
import org.springframework.security.core.AuthenticationException;

/**
 * @author fgba
 */
@Getter
public class JwtAuthenticationException extends AuthenticationException {
    public IResultCode resultCode;

    private Integer code;

    public JwtAuthenticationException(IResultCode errorCode) {
        super(errorCode.getMsg());
        this.resultCode = errorCode;
    }

    public JwtAuthenticationException(String msg) {
        super(msg);
    }
}
